from sklearn.datasets import load_iris
import pandas as pd

from sklearn.model_selection import train_test_split

# 读取数据
data = pd.read_csv(r"D:\pythonProject\2210A\data\test.csv")
data.dropna()
# 2、取出特征值和目标值
# y = data['place_id']
# y = data[['place_id']]
#
# x = data.drop(['place_id', 'row_id'], axis=1)
#
# x_train, x_test, y_train, y_test = train_test_split(data, data.Survived, random_state=22)
# print("x_train:\n", x_train.shape)




# iris = load_iris()
# print("鸢尾花数据集的返回值：\n", iris)
# # 返回值是一个继承自字典的Bench
# print("鸢尾花的特征值:\n", iris["data"])
# print("鸢尾花的目标值：\n", iris.target)
# print("鸢尾花特征的名字：\n", iris.feature_names)
# print("鸢尾花目标值的名字：\n", iris.target_names)
# print("鸢尾花的描述：\n", iris.DESCR)

